﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Iptv.ResourceDowner.Model
{
    /// <summary>
    /// 传输状态码
    /// </summary>
    public enum TransferCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 200,
        /// <summary>
        /// 失败
        /// </summary>
        [Description("失败")]
        Error = -1,
        /// <summary>
        /// 未知错误
        /// </summary>
        [Description("未知错误")]
        UnKnownErr = 400,
        /// <summary>
        /// 服务拒绝
        /// </summary>
        [Description("服务拒绝")]
        ServiceRefuse = 401,
        /// <summary>
        /// 认证失败
        /// </summary>
        [Description("认证失败")]
        AuthFailed = 402,
        /// <summary>
        /// 权限拒绝
        /// </summary>
        [Description("权限拒绝")]
        PermissionDenied = 403,
        /// <summary>
        /// 下载地址异常
        /// </summary>
        [Description("下载地址异常")]
        AddressErr = 404,
        /// <summary>
        /// 文件不存在
        /// </summary>
        [Description("文件不存在")]
        FileNotFound = 405,
        /// <summary>
        /// 下载任务超时
        /// </summary>
        [Description("下载任务超时")]
        DownTimeOut = 406,
        /// <summary>
        /// 下载任务失败
        /// </summary>
        [Description("下载任务失败")]
        DownErr = 407,
        /// <summary>
        /// 文件验证失败
        /// </summary>
        [Description("文件验证失败")]
        FileCheckErr = 408,
        /// <summary>
        /// 本地存储空间不足
        /// </summary>
        [Description("本地存储空间不足")]
        LocalSpaceOut = 409,
        /// <summary>
        /// 本地目录创建失败
        /// </summary>
        [Description("本地目录创建失败")]
        CreateLocalDirErr = 410,
        /// <summary>
        /// 不符合下载规范
        /// </summary>
        [Description("不符合下载规范")]
        NotAllowDownErr = 411,
        /// <summary>
        /// 配置文件异常
        /// </summary>
        [Description("配置文件校验异常")]
        ConfigErr = 412,
        /// <summary>
        /// 参数校验异常
        /// </summary>
        [Description("参数校验异常")]
        ParamsCheckErr = 413,
        /// <summary>
        /// FTP链路失效
        /// </summary>
        [Description("FTP链路失效")]
        FtpLinkErr = 414
    }
}
